﻿using System;
using System.Collections.Generic;
using System.Text;
using WebApiV4Test.Data.Entity;
using WebApiV4Test.Domain.Enum;

namespace WebApiV4Test.Interface.Log
{
    public interface ILog
    {
        Logs GetLogById(int id);
        void Insert(Logs log);
        void Delete(Logs log);
        /// <summary>
        /// 根据时间查询
        /// </summary>
        /// <param name="beginTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="logLevel">错误的级别</param>
        /// <param name="usersId">那个用户</param>
        /// <returns></returns>
        /// userid=0 =>表示全部用户
        IEnumerable<Logs> MultiQuery(DateTime beginTime, DateTime endTime, LogsLevel logsLevel, int usersId = 0);

        /// <summary>
        /// 清除日志
        /// </summary>
        void Clear();
    }
}
